package com.atguigu.cloud.config;

import feign.Logger;
import feign.Retryer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class FeignConfig {
    @Bean
    public Retryer myRetryer(){
        //openFeign的重试配置
//        return Retryer.NEVER_RETRY;
        return new Retryer.Default(100,0,3);
    }

    @Bean
    Logger.Level feignLoggerlevel(){
        return Logger.Level.FULL;
    }
}
